package com.example.photography.Activity.Edit;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.example.photography.R;
import com.example.photography.common.BaseActivity;
import com.example.photography.util.Util;

import butterknife.BindView;
import butterknife.ButterKnife;

public class Edit_introduction extends BaseActivity {


    @BindView(R.id.tv_cancel)
    TextView tvCancel;
    @BindView(R.id.tv_save)
    TextView tvSave;
    @BindView(R.id.et_jianjie)
    EditText etJianjie;

    @Override
    protected void initData() {
        tvCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                removeCurrentActivity();
            }
        });
        tvSave.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Util.showToast(Edit_introduction.this, "修改成功~");
                removeCurrentActivity();
            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.edit_introduction;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
